package players;

import java.awt.Color;

import game.HexBoard;
import game.Cell;

public class RandomPlayer extends Player {



	public RandomPlayer(Color color) {
		super(color);
	}


	@Override
	public Cell itsYourTurn(HexBoard hexBoard) {
	  return selectRandomMove( hexBoard.getSize() );
	}


  protected Cell selectRandomMove(int s) {
     return new Cell((int)(s * Math.random()),(int)(s * Math.random()), this);
   }

}
